//------------------------------------------------------------------------------
// Fichiers d'ent�te utilis�s
//------------------------------------------------------------------------------
#include "Outline.hpp"

//------------------------------------------------------------------------------
// Définition de constantes
//------------------------------------------------------------------------------
namespace ImageAnalysis
{
	//----------------------------------------------------------------------
	// Constructeur
	//----------------------------------------------------------------------
	Outline::Outline( )
	{

	}

	//----------------------------------------------------------------------
	// Destructeur
	//----------------------------------------------------------------------
	Outline::~Outline( )
	{
		pixelIndexList.clear();
	}

	//----------------------------------------------------------------------
	// 
	//----------------------------------------------------------------------
	int Outline::GetNumberOfIndex()
	{
		return pixelIndexList.size();
	}
	
	//----------------------------------------------------------------------
	// 
	//----------------------------------------------------------------------
	void Outline::AddIndexBeforeStart( int index )
	{
		pixelIndexList.push_front( index );
	}

	//----------------------------------------------------------------------
	// 
	//----------------------------------------------------------------------
	void Outline::AddIndexAfterEnd( int index )
	{
		pixelIndexList.push_back( index );
	}

	//----------------------------------------------------------------------
	// Méthode 
	//----------------------------------------------------------------------
	/*
	Outline::TOutlineIterator Outline::GetStartIndex( )
	{
		return pixelIndexList.begin();
	}*/

	//----------------------------------------------------------------------
	// 
	//----------------------------------------------------------------------
	/*
	Outline::TOutlineIterator Outline::GetEndPixel( )
	{
		return pixelIndexList.end();
	}*/
}

